// 引入 request 文件
import {request} from '@/utils/request.js'

//注册接口
export const apienroll = (params) => {
    return request({
        url: '/enroll',
        method: 'post',
		data: params
    })
}

//登录接口
export const apilogin = (params) => {
    return request({
        url: '/login',
        method: 'post',
		data: params
    })
}

// 获取首页大图
export const apiHomeBanner = () => {
    return request({
        url: '/homeBanner',
        method: 'get',
    })
}

// 获取随机图片
export const apiRandomWall = () => {
    return request({
        url: '/randomWall',
        method: 'get',
    })
}

// 获取首页信息列表
export const apiWallNewsList = (params) => {
    return request({
        url: '/wallNewsList',
        method: 'post',
        data: params
    })
}

//获取壁纸大分类
export const apiClassify = (params) => {
    return request({
        url: '/classify',
        method: 'post',
        data: params
    })
}

//获取分类中壁纸列表
export const apiWallList = (params) => {
    return request({
        url: '/wallList',
        method: 'post',
        data: params
    })
}

//获取单个壁纸详情D
export const apiDetailWall = (id) => {
    return request({
        url: `/detailWall/${id}`,
        method: 'get'
    })
}